home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15255 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: cayley.zfe.siemens.de!not-for-mail
  2. From: lauther@cayley.zfe.siemens.de (Ulrich Lauther)
  3. Newsgroups: comp.lang.c++,gnu.g++.help
  4. Subject: Re: Unable to compile inline functions
  5. Followup-To: comp.lang.c++,gnu.g++.help
  6. Date: 4 Apr 1996 14:26:43 GMT
  7. Organization: Siemens
  8. Distribution: world
  9. Message-ID: <4k0m73$6pp@salomon.zfe.siemens.de>
  10. References: <4js108$pm4@ncar.ucar.edu> <4js6j8$7p3@bmtlh10.bnr.ca>
  11. NNTP-Posting-Host: cayley.zfe.siemens.de
  12. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  13.  
  14. John Hickin (hickin@bnr.ca) wrote:
  15. : Your inlines should appear in a public header file.
  16. : The class header is an ideal place.  You can put them outside the class
  17. : definition at the bottom of the file.  This way you don't pollute the
  18. : interface with implementation details and, more importantly, you can roll
  19. : out the inline definitions in the 'best' order which means inlines that
  20. : use inlines come after the ones they depend on.  This isn't required by
  21. : C++ but some versions of g++, for example, does a lot better if you do 
  22.  
  23. what does "a lot better" mean?
  24.  
  25.     -faster compilation?
  26.     -better code?
  27.     -more inlining?
  28.  
  29. : this than if you don't.
  30. -- 
  31.     -lauther
  32.  
  33. [nosave]
  34. ----------------------------------------------------------------------------
  35. Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
  36. Siemens ZFE BT SE 14    Internet: lauther@zfe.siemens.de
  37.